<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">真实姓名<span class="text-danger">&nbsp;*</span>:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control" disabled>{$row.real_name}</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">任务名称<span class="text-danger">&nbsp;*</span>:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control" disabled>{$row.task_name}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money')}<span class="text-danger">&nbsp;*</span>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" disabled data-rule="required" class="form-control"  name="row[money]" type="number" value="{$row.money}" {if condition="$row.transfer_type eq 2"} disabled {/if}>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">收入金额<span class="text-danger">&nbsp;*</span>:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control" disabled>{$row.get_money}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tax_money')}<span class="text-danger">&nbsp;*</span>:</label>
        <div class="col-xs-12 col-sm-8" >
            <span class="form-control" disabled>{$row.tax_money}</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Already_money')}<span class="text-danger">&nbsp;*</span>:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control" disabled>{$row.already_money}</span>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}<span class="text-danger">&nbsp;*</span>:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-pay_type" data-rule="required" class="form-control selectpicker" name="row[pay_type]">
                {foreach name="payTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.pay_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bank_card')}<span class="text-danger">&nbsp;*</span>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bank_card" data-rule="required" class="form-control" name="row[bank_card]" type="text" value="{$row.bank_card|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Item')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-item" data-rule="required" class="form-control" name="row[item]" type="text" value="{$row.item}" {if condition="$row.transfer_type eq 2"} disabled {/if}>
        </div>
    </div>

    {if condition="$Think.TYPE == 0 "}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">审核状态:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="radio">
                    <label for="row[type]-0"><input id="row[type]-0" {if condition="$row.transfer_type eq 1 || $row.transfer_type eq 2"} disabled {/if} name="row[type]" type="radio" value="0" {eq name="row.type" value="0"}checked{/eq}> 待审核</label>
                    <label for="row[type]-1"><input id="row[type]-1" {if condition="$row.transfer_type eq 1 || $row.transfer_type eq 2"} disabled {/if} name="row[type]" type="radio" value="1" {eq name="row.type" value="1"}checked{/eq}> 审核通过</label>
                    <label for="row[type]-2"><input id="row[type]-2" {if condition="$row.transfer_type eq 1 || $row.transfer_type eq 2"} disabled {/if} name="row[type]" type="radio" value="2" {eq name="row.type" value="2"}checked{/eq}> 审核驳回</label>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
            <div class="col-xs-12 col-sm-8">

                <div class="radio">
                    {foreach name="statusList" item="vo"}
                    <label for="row[status]-{$key}"><input id="row[status]-{$key}" {if condition="$row.transfer_type eq 1 || $row.transfer_type eq 2"} disabled {/if} name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
                    {/foreach}
                </div>

            </div>
        </div>
    {/if}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::textarea('row[remark]', $row['remark'])}
        </div>
    </div>

    <div class="form-group {if condition='$row.transfer_type eq 2'} hide {/if}">
        <label class="control-label col-xs-12 col-sm-2">重新计算:</label>
        <div class="col-xs-12 col-sm-10">
            <div class="radio">
                <label for="row[money_type]-2"><input id="row[money_type]-2" name="row[money_type]" type="radio" value="2" checked="" data-money="{$row.get_money}"> 实发</label>
                <label for="row[money_type]-1"><input id="row[money_type]-1" name="row[money_type]" type="radio" value="1" data-money="{$row.money}"> 应发</label>
            </div>
            <input style="width: 200px" id="c-cal_money" class="form-control" placeholder="请输入计算金额" name="row[cal_money]" type="text" value="{$row.get_money}" >
            <a href="javascript:;" id="reimport" class="btn btn-danger" title="重新计算" ><i class="fa fa-hand-lizard-o"></i> 重新计算</a>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="ids" value="{$row.id}">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">纳税明细:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table table-bordered">
                <tr>
                    <th>应税所得额</th>
                    <th>纳税金额</th>
                    <th>税率</th>
                    <th>速算扣除数</th>
                </tr>
                {volist name="row.json_rate" id="vo"}
                    <tr>
                        <td>{$vo.ca_money}</td>
                        <td>{$vo.tax_money}</td>
                        <td>{$vo.tax_rate}</td>
                        <td>{$vo.kouchushu}</td>
                    </tr>
                {/volist}
            </table>
        </div>
    </div>
</form>
